﻿using Power.Models;
using Power.View.Report;
using Power.ViewModel;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Remoting.Contexts;
using System.Windows.Controls;

namespace Power.View
{
    /// <summary>
    /// DataAnalysis.xaml 的交互逻辑
    /// </summary>
    public partial class DataAnalysis : UserControl
    {
        public DataAnalysisViewModel Context;
        public DataAnalysis()
        {
            InitializeComponent();
            Context = new DataAnalysisViewModel(this);
            this.DataContext = Context;
        }

        private void Com_Selected(object sender, SelectionChangedEventArgs e)
        {
            int a = this.combobox2.SelectedIndex;
            Context.UserContent = Context.OnTabSwitch(a);
        }
    }
}
